import { Post, Get, Patch, Put, Delete, Download, ax } from './http';
import { type } from './interface';
import qs from 'qs';
export namespace Combine {
    /**
     * 获取机型回款
     */
    export var GetPayBackByModel = (query: type.combine_GetPayBackByModelReq): Promise<Array<type.BaseRsp>> => {
        return Get(`/api/Combine/GetPayBackByModel?${qs.stringify(query)}`, {});
    };
    /**
     * 获取片区回款
     */
    export var GetPayBackByArea = (query: type.combine_GetPayBackByAreaReq): Promise<Array<type.BaseRsp>> => {
        return Get(`/api/Combine/GetPayBackByArea?${qs.stringify(query)}`, {});
    };
    /**
     * 获取库存列表
     */
    export var GetStockList = (query: type.combine_GetStockListReq): Promise<type.Int64Int64KcmxListTuple> => {
        return Get(`/api/Combine/GetStockList?${qs.stringify(query)}`, {});
    };
    /**
     * 获取回款列表
     */
    export var GetPayBackList = (query: type.combine_GetPayBackListReq): Promise<type.DecimalInt64HkmxListTuple> => {
        return Get(`/api/Combine/GetPayBackList?${qs.stringify(query)}`, {});
    };
    /**
     * 获取授信列表
     */
    export var GetCreditList = (query: type.combine_GetCreditListReq): Promise<type.DoubleDoubleInt64SxmxListTuple> => {
        return Get(`/api/Combine/GetCreditList?${qs.stringify(query)}`, {});
    };
    /**
     * 获取整机库存量
     */
    export var GetStock = (query: type.combine_GetStockReq): Promise<type.GetChildsRspListResponse> => {
        return Get(`/api/Combine/GetStock?${qs.stringify(query)}`, {});
    };
    /**
     * 获取经销商授信额度
     */
    export var GetCreditByDealer = (): Promise<Array<type.BaseRsp>> => {
        return Get(`/api/Combine/GetCreditByDealer`, {});
    };
    /**
     * 获取片区授信额度
     */
    export var GetCreditByArea = (): Promise<Array<type.BaseRsp>> => {
        return Get(`/api/Combine/GetCreditByArea`, {});
    };
    /**
     * 获取累计销售回款额对比
     */
    export var GetCreditBySales = (): Promise<type.DoubleBaseRspListBaseRspListTuple> => {
        return Get(`/api/Combine/GetCreditBySales`, {});
    };
    /**
     * 获取累计发货回款额对比
     */
    export var GetCreditByDelivery = (): Promise<type.DoubleBaseRspListBaseRspListTuple> => {
        return Get(`/api/Combine/GetCreditByDelivery`, {});
    };
}
